<template>
  <div>
    <van-search
      v-model="value"
      show-action
      placeholder="请输入搜索关键词"
      shape="round"
    >
      <template #left
        ><van-icon
          @click="$router.push('/index')"
          name="arrow-left"
          class="arr"
      /></template>
      <template #action>
        <div @click="onSearch">搜索</div>
      </template>
    </van-search>
    <hr />
    <div>
      <h2>历史记录....</h2>
      <ul>
        <li>中过</li>
        <li>中过</li>
        <li>中过</li>
        <li>中过</li>
        <li>中过</li>
        <li>中过</li>
      </ul>
    </div>
    <hr />
    <div>
      <h2>搜索结果</h2>
      <ul>
        <li>中过发范德萨发</li>
        <li>中过发范德萨发</li>
        <li>中过发范德萨发</li>
        <li>中过发范德萨发</li>
        <li>中过发范德萨发</li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      value: "",
    };
  },
  methods: {
    onSearch() {},
  },
};
</script>

<style>
/* 左侧图标样式 */
.arr {
  padding-right: 9px;
}
</style>